﻿<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
    <link href="css/default.css" rel="stylesheet"/>
    <script type="text/javascript" language="javascript">
        function edit(dbid) {
            this.window.location = ("cameraEdit.html?dbid=" + dbid);
        }
    </script>
</head>
<body>
<table class="camera_table" style="text-align: center">
    <th>序号</th>
    <th>名称</th>
    <th>IP</th>
    <th>端口</th>
    <th>用户名</th>
    <th>密码</th>
    <th>类型</th>
    <th>状态</th>
    <th>操作</th>
    %for item in cameras:
    <tr>
        <td>{{ item[0] }}</td>
        <td>{{ item[1] }}</td>
        <td>{{ item[2] }}</td>
        <td>{{ item[3] }}</td>
        <td>{{ item[4] }}</td>
        <td>{{ item[5] }}</td>
        <td>{{ item[6] }}</td>
        <td>{{ item[7] }}</td>
        <td>
            <button id="btn_edit"
                    onclick="edit({{ item[0] }})">
                修改
            </button>
        </td>
    </tr>
    %end

</table>
</body>
</html>